package com.vichat.workflow.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-05-25 22:29:01.937
 */
@Entity
@Table(name = "WF_NODE_REL",catalog = "wfdb")
public class WfNodeRel implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "WF_NODE_REL";

    /**节点关系编号 */
	public static final String ALIAS_REL_ID = "REL_ID";
    /**节点编号1 */
	public static final String ALIAS_NODE_ID1 = "NODE_ID1";
    /**节点编号2 */
	public static final String ALIAS_NODE_ID2 = "NODE_ID2";
    /**流程编号 */
	public static final String ALIAS_FLOW_ID = "FLOW_ID";
    /**关系名称 */
	public static final String ALIAS_REL_NAME = "REL_NAME";
    /**关系表达式 */
	public static final String ALIAS_REL_EXP = "REL_EXP";
    /** */
	public static final String ALIAS_CREATE_TIME = "CREATE_TIME";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "REL_ID", unique = true, nullable = false)
    public java.lang.Long relId;
  
 	@Column(name = "NODE_ID1")
    public java.lang.Long nodeId1;
  
 	@Column(name = "NODE_ID2")
    public java.lang.Long nodeId2;
  
 	@Column(name = "FLOW_ID")
    public java.lang.Long flowId;
  
 	@Column(name = "REL_NAME")
    public java.lang.String relName;
  
 	@Column(name = "REL_EXP")
    public java.lang.String relExp;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
    public java.util.Date createTime;
  





	public java.lang.Long getRelId() {
		return this.relId;
	}
	
	public void setRelId(java.lang.Long value) {
		this.relId = value;
	}

	public java.lang.Long getNodeId1() {
		return this.nodeId1;
	}
	
	public void setNodeId1(java.lang.Long value) {
		this.nodeId1 = value;
	}

	public java.lang.Long getNodeId2() {
		return this.nodeId2;
	}
	
	public void setNodeId2(java.lang.Long value) {
		this.nodeId2 = value;
	}

	public java.lang.Long getFlowId() {
		return this.flowId;
	}
	
	public void setFlowId(java.lang.Long value) {
		this.flowId = value;
	}

	public java.lang.String getRelName() {
		return this.relName;
	}
	
	public void setRelName(java.lang.String value) {
		this.relName = value;
	}

	public java.lang.String getRelExp() {
		return this.relExp;
	}
	
	public void setRelExp(java.lang.String value) {
		this.relExp = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}


	
	public WfNodeRel() {
	}
	
	public WfNodeRel(boolean qryflag) {
	    if(qryflag){
	    		this.relId = null;
				this.nodeId1 = null;
				this.nodeId2 = null;
				this.flowId = null;
				this.relName = null;
				this.relExp = null;
				this.createTime = null;
			    }
	}


	public WfNodeRel(
	    java.lang.Long inRelId,
	    java.lang.Long inNodeId1,
	    java.lang.Long inNodeId2,
	    java.lang.Long inFlowId,
	    java.lang.String inRelName,
	    java.lang.String inRelExp,
		java.util.Date inCreateTime
	 ) {
		super();
				this.relId = inRelId;
				this.nodeId1 = inNodeId1;
				this.nodeId2 = inNodeId2;
				this.flowId = inFlowId;
				this.relName = inRelName;
				this.relExp = inRelExp;
				this.createTime = inCreateTime;
			}





}

